package com.xhblogs.book.service.impl;

import com.xhblogs.book.mapper.LoginMapper;
import com.xhblogs.book.pojo.Admin;
import com.xhblogs.book.pojo.User;
import com.xhblogs.book.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserLoginImpl implements LoginService {

    @Autowired
    private LoginMapper LoginMapper;

    @Override
    public User isUserLogin(String user_name, String user_pwd) {
        return LoginMapper.isUserLogin(user_name, user_pwd);
    }

    @Override
    public Admin isAdminLogin(String user_name, String user_pwd) {
        return LoginMapper.isAdminLogin(user_name, user_pwd);
    }
}
